package cn.wolfcode;

import lombok.Getter;
import lombok.Setter;

@Getter
public enum  MyDay {
    /*
    * 枚举类特点
    * 枚举是一个特殊类
    * 1:构造器是私有
    * 2:枚举了哦实例是固定的
    * 3:剩下操作跟普通类一样*/
    day1("pr1",1L);
    @Setter
    private String prefix;
    @Setter
    private Long time;

    MyDay(String prefix, Long time) {
        this.prefix = prefix;
        this.time = time;
    }

    public String jsin() {
        return name();
    }
}
